<cfcomponent output="false">
	
	<!--- --->
	
	<cffunction name="getVar" access="public" output="false" returntype="string">
		<cfargument name="name" required="true" />
		
		<cfset var local = {} />
		<cfset local.locale = "web" />
		<cfset local.app = "fundr" />
		
		<cfif cgi.http_referer contains "home.cfm" or cgi.cf_template_path contains 'home.cfm'>
			<cfset local.app = "fundr">
		</cfif>
		
		<cfif cgi.http_referer contains 'craftivity.cfm' or cgi.cf_template_path contains 'craftivity.cfm' or application.name eq 'craftivity'>
			<cfset local.app = "craftivity" />
		</cfif>
		
		<cfif cgi.http_host contains 'localhost' or cgi.http_host contains '127.0.0.1'>
			<cfset local.locale = "local" />
		<cfelse>
			<cfset local.locale = 'web' />
		</cfif>

		<cfset local.key = local.locale & local.app />
		
		<cfreturn application.vars[local.key][arguments.name] />

	</cffunction>
	
	<!--- --->
	
	<cffunction name="getOptions" access="public" output="false" returntype="struct">
		<cfargument name="key" required="true" />
		
		<cfreturn application.s.optionService.getOptions(argumentCollection=arguments) />

	</cffunction>
	
	<!--- --->

</cfcomponent>

